package com.tbit.uqbike.service.business;

import com.tbit.uqbike.object.pojo.RefundLog;
import com.tbit.uqbike.object.pojo.RefundLogSum;
import com.tbit.uqbike.object.pojo.TransactionLog;
import com.tbit.uqbike.object.pojo.dto.RefundLogDTO;
import com.tbit.uqbike.object.pojo.dto.RefundLogDownloadDTO;
import com.tbit.common.entity.view.PageResult;

import java.io.File;
import java.util.List;

/**
 * @Author:BUGTian
 * @DATE: 2022/11/16
 */
public interface RefundLogService {
    /**
     * 分页查询退款详情
     *
     * @param refundLogDTO
     * @return
     */
    PageResult<RefundLog> queryPage(RefundLogDTO refundLogDTO);

    /**
     * 查询退款汇总
     *
     * @param refundLogDTO
     * @return
     */
    RefundLogSum sumRefundLog(RefundLogDTO refundLogDTO);

    /**
     * 查询退款详情
     *
     * @param businessNO
     * @return
     */
    List<TransactionLog> selectTransactionLog(String businessNO);

    String download(RefundLogDownloadDTO downloadDTO);

    public File download(RefundLogDownloadDTO downloadDTO, File tempFile);

    /**
     * 骑行退款金额分布导出
     *
     * @param downloadDTO .
     * @return .
     */
    String distributionDownload(RefundLogDownloadDTO downloadDTO);

}
